What exactly is happening when Excel 2013 is "updating cells"?

I have an Excel 2013 workbook with an external SQL datasource.  There are a number of calculated columns to the right of the data table as well.

After making changes to the data within SQL, I routinely refresh the data which usually takes @ 20-30 seconds.

Today I made a change to the SQL query for the datasource to change a couple of the data fields from straight out of the SQL table to conditional values using  "select, case, when" clauses (both include isnull() functions in the clauses).

Now when refreshing Excel seems to move at the same speed until it gets to the 'updating cells' step where it's now taking as much as 5 or more minutes to complete, which it finally does with no errors.

So what exactly is happening at the 'updating cells' step?  I thought that step handled the calculated columns of the table only and that the data was already refreshed to the table by this point.  I would love to have an outline of the steps that Excel performs when one refreshes external data.

As a footnote, I do have one cell calculation as shown below which utilizes the two columns of data that I changed in the SQL view.  Don't know if the 'updating cells' could possibly only be referring to re-calcing of that cell or not.

Formula:  =((COUNTIFS(U:U,"Yes",N:N,FALSE,P:P,FALSE))/2)/(COUNTA(T:T)-1)

Follow-up:

1) By clearing all of the data from the table before refreshing I can see that the new data is not present in the table prior to reaching the 'updating cells' step.

2) I removed the conditional clauses in the SQL query, but it's still taking 10-15 minutes to complete the refresh.

Follow-up 2:  Thought it might be a lack of memory on the SQL server (running at 83%) so I restarted the SQL server.  No improvement:  it's still taking 15-16 minutes to complete the Excel refr

May 29th, 2015 9:36am

Hi Ross,

Based on your description, could you tell me which version of Office are you using? Did you get the data go to DATA- From Other Sources- From SQL server?

In general, cell references and calculation operations are the main performance vampires. Reasonable formulas and even lots of data don't usually slow things down. Are almost all of the formulas in your workbook using COUNTIF formula? I suppose this might be caused by repeating calculation automatically. You can try to change the calculation to Manual. Please go to FORMULARS- Calculation- Calculation Options- Manual.

In addition, if youre using Office 2013 pro-plus I suppose you can use the Power Pivot Add-In. It can combine data from different SQL queries together with Excel tables and other sources.

The resulting model is compressed and held in memory for very fast and scalable Pivot Tables. There are memory limits for any process with 32-bit Office (which most people have), but 64-bit Office is only limited by available RAM.

You can add calculations in Power Pivot using DAX formulas - simple ones are similar to standard Excel formulas, and it has a lot more computing power available if needed.

For complex data transformation requirements I reach for the Power Query Add-In, which can transform and deliver data into the Power Pivot model.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"

Free Windows Admin Tool Kit Click here and download it now
June 1st, 2015 5:22am

Hi,

Just checking in to see if the information was helpful. Please let us know if you would like further assistance.

Thanks

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"

June 8th, 2015 5:31am

This is good information; however, I was really just looking for some 'official' information regarding the data model in Office 2013 and what happens, step by step, when refreshing data using external data & the data model.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 7:42pm

Hi Ross,

Do you wonder to know the difference between the external data and data model in Excel?

Please refer to these two official articles.

The first article is talking about what happens when you refresh data connected to an external data source in Excel.

https://support.office.com/en-ca/article/Refresh-external-data-in-Excel-Services-a7624837-cf74-4cf6-b269-6418458151f6

And the second article is talking about the difference between data model in Excel and in Power Pivot.

https://support.office.com/en-ca/article/Power-Pivot-Powerful-data-analysis-and-data-modeling-in-Excel-d7b119ed-1b3b-4f23-b634-445ab141b59b

If these article is useless, please let me know Im glad to help you.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"


June 8th, 2015 10:33pm

Hi Ross,

Do you wonder to know the difference between the external data and data model in Excel?

Please refer to these two official articles.

The first article is talking about what happens when you refresh data connected to an external data source in Excel.

https://support.office.com/en-ca/article/Refresh-external-data-in-Excel-Services-a7624837-cf74-4cf6-b269-6418458151f6

And the second article is talking about the difference between data model in Excel and in Power Pivot.

https://support.office.com/en-ca/article/Power-Pivot-Powerful-data-analysis-and-data-modeling-in-Excel-d7b119ed-1b3b-4f23-b634-445ab141b59b

If these article is useless, please let me know Im glad to help you.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"


Free Windows Admin Tool Kit Click here and download it now
June 9th, 2015 2:31am

Hi Ross,

Do you wonder to know the difference between the external data and data model in Excel?

Please refer to these two official articles.

The first article is talking about what happens when you refresh data connected to an external data source in Excel.

https://support.office.com/en-ca/article/Refresh-external-data-in-Excel-Services-a7624837-cf74-4cf6-b269-6418458151f6

And the second article is talking about the difference between data model in Excel and in Power Pivot.

https://support.office.com/en-ca/article/Power-Pivot-Powerful-data-analysis-and-data-modeling-in-Excel-d7b119ed-1b3b-4f23-b634-445ab141b59b

If these article is useless, please let me know Im glad to help you.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"


June 9th, 2015 2:31am

Hi Ross,

Do you wonder to know the difference between the external data and data model in Excel?

Please refer to these two official articles.

The first article is talking about what happens when you refresh data connected to an external data source in Excel.

https://support.office.com/en-ca/article/Refresh-external-data-in-Excel-Services-a7624837-cf74-4cf6-b269-6418458151f6

And the second article is talking about the difference between data model in Excel and in Power Pivot.

https://support.office.com/en-ca/article/Power-Pivot-Powerful-data-analysis-and-data-modeling-in-Excel-d7b119ed-1b3b-4f23-b634-445ab141b59b

If these article is useless, please let me know Im glad to help you.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"


Free Windows Admin Tool Kit Click here and download it now
June 9th, 2015 2:31am

Hi Ross,

Do you wonder to know the difference between the external data and data model in Excel?

Please refer to these two official articles.

The first article is talking about what happens when you refresh data connected to an external data source in Excel.

https://support.office.com/en-ca/article/Refresh-external-data-in-Excel-Services-a7624837-cf74-4cf6-b269-6418458151f6

And the second article is talking about the difference between data model in Excel and in Power Pivot.

https://support.office.com/en-ca/article/Power-Pivot-Powerful-data-analysis-and-data-modeling-in-Excel-d7b119ed-1b3b-4f23-b634-445ab141b59b

If these article is useless, please let me know Im glad to help you.

Hope its helpful.

Regards,

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"


June 9th, 2015 2:31am

 


Hi,
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.

Thanks

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 3:21am

 


Hi,
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.

Thanks

George Zhao
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "tnfsl@microsoft.com"

June 18th, 2015 3:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics